/* 
 * File:   Connection.cpp
 * Author: André
 * 
 * Created on November 30, 2012, 11:20 PM
 */

#include "Connection.h"

Connection::Connection() {
}

void Connection :: setWeight(double w)
{ weight = w; }

double Connection :: getWeight()
{ return weight; }

Neuron* Connection :: getFromNeuron()
{ return fromNeuron; }

Neuron* Connection :: getToNeuron()
{ return toNeuron; }

void Connection :: connect(Neuron* from, Neuron* to)
{
    fromNeuron = from;
    toNeuron = to;
}

